<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Title</title>
    <style>
        .date{
            display: inline-block;
            width: 100%;
            text-align: end;
            font-size: 1rem;
            color: #ccc;
        }
        .item{
            border-radius: 10px;
            background-color: whitesmoke;
            margin: 10px;
            padding: 10px;
        }
        .item span{
            color: blueviolet;
            font-size: 1.2rem;
        }
    </style>
</head>
<body>
<div id="hlist">

</div>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script>
    let dom = document.getElementById('hlist')
    $.get('/getHistory', function success(data){
        console.log(data)
        let arr = JSON.parse(data)
        let html = ""
        for(let i of arr){
            html+=
            `
            <div class="item">
                <span>${i.s} = ${i.rst}</span>
                <div class="date">${i.date}</div>
            </div>
        `
        }
        dom.innerHTML = html
    })

</script>
</body>
</html>
